#ifndef MENU2_H
#define MENU2_H

#include <stdio.h>
#include "control.h"
#include "engine.h"
#include "keyboard.h"
#include "main.h"
#include "menu.h"
#include "pcx.h" // for decl of c
#include "timer.h"
#include "vc.h"
#include "vga.h"

extern char sg1[];
extern char sg2[];
extern char sg3[];
extern char sg4[];
extern char* savename[];

struct menu {
    unsigned short posx;
    unsigned short posy;
    char linktype;
};

extern struct menu menus[4];
extern unsigned char itmptr[576];
extern unsigned char iuflag;

extern void greyscale(int width, int height, unsigned char* src, unsigned char* dest);
extern void LoadSaveErase(char mode);
extern void RemoveItem(char c, char i);
extern void DrawItemMenu(char c, char ptr);
extern void ItemGive(char c, char p);
extern void ItemUse(char c, char p);
extern void ItemActionSelect(char c, char p);
extern void ItemMenu(char c);
extern void CalcEquipPreview(int a, int i, int p);
extern void DrawEquipMenu(char c, char ptr);
extern void Equip(char c, char ptr);
extern void DeEquip(char c, char ptr);
extern void EquipMenu(char c);
extern void DrawMagicMenu(char c, char ptr);
extern void MagicUse(char c, char p);
extern void MagicActionSelect(char c, char p);
extern void MagicMenu(char c);

#endif
